  @SpringBootTest
class ConsumerMapperTest {

    @Autowired
    private ConsumerMapper consumerMapper;
    
    /**
     * 用户更新个人资料
     */
    @Test
    void consumerMapperUpdateTest(){
        Consumer consumer = new Consumer();
        consumer.setId(74);
        consumer.setUsername("lisi");
        consumer.setSex((byte)0);
        consumer.setPhoneNum("17765488888");
        consumer.setIntroduction("爱好和平");
        if (consumerMapper.updateById(consumer) > 0) {
            System.out.println("修改成功");
        } else {
            System.out.println("修改失败");
        }
    }
}
